import Taro, {Component} from '@tarojs/taro'
import {Text, View} from '@tarojs/components'
import CustomComp from "./customComp"
import './xhl1.scss'
import CustomComp2 from "./customComp2";

export default class Xhl1 extends Component {

  config = {
    navigationBarTitleText: '组件的外部样式和全局样式'
  }

  render() {
    return (
      <View>
        <View>
          <Text >组件的外部样式</Text>
          <CustomComp my-class='red-text' />
        </View>
        <View>
          <Text >全局样式</Text>
          <CustomComp2 className='red-text' />
        </View>
      </View>
    )
  }
}
